#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
	int n;
	int num = 1;
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < n-i; j++)
		{
			if (num < 10)
				cout << 0 << num;
			else
				cout << num;
			num++;
		}
		cout << endl;
	}
	return 0;
}